onKeyPreIme

open fun onKeyPreIme(keyCode: Int, @NonNull event: @NonNull KeyEvent): Boolean(source)

Filter pre-IME key events. By forwarding onKeyPreIme events to this function, views using ListPopupWindow can have it dismiss the popup when the back key is pressed.

Return

true if the event was handled, false if it was ignored.

Parameters

keyCode

keyCode param passed to the host view's onKeyPreIme

event

event param passed to the host view's onKeyPreIme

See also